package com.foreknow.controller;

import com.foreknow.entity.RegistLevel;
import com.foreknow.service.RegistLevelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "RegistLevelController", description = "挂号级别管理")
@RestController
@RequestMapping("/registLevel")
public class RegistLevelController {

    @Autowired
    private RegistLevelService registLevelService;

    @ApiOperation("获取挂号级别名称")
    @GetMapping("/getRegistLevel")
    public List<RegistLevel> getRegistLevel(){
        return registLevelService.getRegistLevel();
    }
}
